home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat2 / standard / setreuid.z / setreuid
Encoding:
Text File  |  1998-10-20  |  1.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSEEEETTTTRRRREEEEUUUUIIIIDDDD((((2222))))                                                        SSSSEEEETTTTRRRREEEEUUUUIIIIDDDD((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      setreuid - set real and effective user ID's
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt sssseeeettttrrrreeeeuuuuiiiidddd ((((uuuuiiiidddd____tttt rrrruuuuiiiidddd,,,, uuuuiiiidddd____tttt eeeeuuuuiiiidddd))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The real and effective user ID's of the current process are set according
  18.      to the arguments.  If _r_u_i_d or _e_u_i_d is -1, the current uid is filled in by
  19.      the system.  Unprivileged users may change the real user ID to the
  20.      effective user ID and vice-versa; only the super-user may make other
  21.      changes.
  22.  
  23. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  24.      Upon successful completion, a value of 0 is returned.  Otherwise, a value
  25.      of -1 is returned and _e_r_r_n_o is set to indicate the error.
  26.  
  27. EEEERRRRRRRROOOORRRRSSSS
  28.      [EPERM]        The current process is not the super-user and a change
  29.                     other than changing the effective user-id to the real
  30.                     user-id was specified.
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      getuid(2), setregid(2), setuid(2).
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.